package com.zzq.demo.h2.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 平台名-子平台名-模块名:
 *
 * <p>//TODO 类描述
 *
 * @author wallace.zhao 2020-03-03
 */
@Configuration
public class H2Config {

    @ConfigurationProperties(prefix = "spring.datasource")
    @Bean
    public DruidDataSource druidDataSource(){
        return new DruidDataSource();
    }
}
